import Vue from 'vue'
import VueRouter from 'vue-router'
import IndexView from '@/views/index.vue'
import SystemView from "@/views/system.vue";
import IndexView2 from "@/views/index2.vue";
import Register from '@/views/register.vue';
import Login from "@/views/login.vue";
import OnlinePayment from "@/views/onlinePayment.vue";
import OnSitePayment from "@/views/onSitePayment.vue";
Vue.use(VueRouter)

const routes = [
  {
    path: '/',
    name: 'system',
    component: SystemView
  },
  {
    path: '/system',
    name: 'System',
    component: SystemView
  },
  {
    path: '/index',
    name: 'index',
    component: IndexView
  },
  {
    path: '/index2',
    name: 'index2',
    component: IndexView2
  },
  {
    path: '/about',
    name: 'about',
    component: () => import(/* webpackChunkName: "about" */ '../views/AboutView.vue')
  },
  {
    path: '/register',
    name: 'Register',
    component: Register
  },
  {
    path: '/login',
    name: 'Login',
    component: Login
  },
  {
    path: '/onlinePayment',
    name: 'OnlinePayment',
    component: OnlinePayment
  },
  {
    path: '/onSitePayment',
    name: 'OnSitePayment',
    component: OnSitePayment
  }
]

const router = new VueRouter({
  routes
})

export default router
